package domain.entities;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Trackingtraducciones entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "trackingtraducciones", catalog = "bms")
public class Trackingtraducciones implements java.io.Serializable {

	// Fields

	private Integer id;
	private Tipodocumento tipodocumento;
	private ProtocoloCompromisopais protocoloCompromisopais;
	private Date confirmadoPrism;
	private Date date;
	private String description;
	private Date enviadoPrism;
	private Date review;
	private Date sampleIcf;
	private String translationCertificate;

	// Constructors

	/** default constructor */
	public Trackingtraducciones() {
	}

	/** minimal constructor */
	public Trackingtraducciones(Tipodocumento tipodocumento,
			ProtocoloCompromisopais protocoloCompromisopais) {
		this.tipodocumento = tipodocumento;
		this.protocoloCompromisopais = protocoloCompromisopais;
	}

	/** full constructor */
	public Trackingtraducciones(Tipodocumento tipodocumento,
			ProtocoloCompromisopais protocoloCompromisopais,
			Date confirmadoPrism, Date date, String description,
			Date enviadoPrism, Date review, Date sampleIcf,
			String translationCertificate) {
		this.tipodocumento = tipodocumento;
		this.protocoloCompromisopais = protocoloCompromisopais;
		this.confirmadoPrism = confirmadoPrism;
		this.date = date;
		this.description = description;
		this.enviadoPrism = enviadoPrism;
		this.review = review;
		this.sampleIcf = sampleIcf;
		this.translationCertificate = translationCertificate;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "TIPODOCUMENTOid", nullable = false)
	public Tipodocumento getTipodocumento() {
		return this.tipodocumento;
	}

	public void setTipodocumento(Tipodocumento tipodocumento) {
		this.tipodocumento = tipodocumento;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumns( {
			@JoinColumn(name = "protocolo_compromisopaisprotocoloid", referencedColumnName = "protocoloid", nullable = false),
			@JoinColumn(name = "protocolo_compromisopaiscompromisopaisid", referencedColumnName = "compromisopaisid", nullable = false) })
	public ProtocoloCompromisopais getProtocoloCompromisopais() {
		return this.protocoloCompromisopais;
	}

	public void setProtocoloCompromisopais(
			ProtocoloCompromisopais protocoloCompromisopais) {
		this.protocoloCompromisopais = protocoloCompromisopais;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "confirmadoPRISM", length = 10)
	public Date getConfirmadoPrism() {
		return this.confirmadoPrism;
	}

	public void setConfirmadoPrism(Date confirmadoPrism) {
		this.confirmadoPrism = confirmadoPrism;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "date", length = 10)
	public Date getDate() {
		return this.date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Column(name = "description")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "enviadoPRISM", length = 10)
	public Date getEnviadoPrism() {
		return this.enviadoPrism;
	}

	public void setEnviadoPrism(Date enviadoPrism) {
		this.enviadoPrism = enviadoPrism;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "review", length = 10)
	public Date getReview() {
		return this.review;
	}

	public void setReview(Date review) {
		this.review = review;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "sampleICF", length = 10)
	public Date getSampleIcf() {
		return this.sampleIcf;
	}

	public void setSampleIcf(Date sampleIcf) {
		this.sampleIcf = sampleIcf;
	}

	@Column(name = "translationCertificate")
	public String getTranslationCertificate() {
		return this.translationCertificate;
	}

	public void setTranslationCertificate(String translationCertificate) {
		this.translationCertificate = translationCertificate;
	}

}